<extend name="Public/base"/>
<block name="style">
    <link rel="stylesheet" href="__STATIC__/plugins/data-tables/DT_bootstrap.css" />

</block>
<block name="body">

    <div class="row">
        <div class="col-md-12">
            <!-- BEGIN EXAMPLE TABLE PORTLET-->
            <div class="portlet box blue">
                <div class="portlet-title">
                    <div class="caption"><i class="fa fa-globe"></i><a href="{:U('User/resultStatistics?gid='.$_GET['gid'])}">【年级考试成绩统计】</a>{$_GET['stat_name']}[数据详情]</div>
                    <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                        <a href="#portlet-config" data-toggle="modal" class="config"></a>
                        <a href="javascript:;" class="reload"></a>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="table-toolbar">
                        <div class="btn-group pull-right">
                            <a class="btn blue yellow-stripe"><i class="fa fa-tag"></i> {$_GET['grade_name']}</a>
                            <button class="btn btn-default">年级：{$class_name}</button>
                            <button class="btn btn-default">考试名：{$_GET['exam_name']}</button>
                            <button class="btn btn-default">共{$_total}条数据</button>
                        </div>
                    </div>

                    <style>
                        .table thead tr th{font-size: 12px;}
                    </style>
                    <table class="table table-striped table-bordered table-hover" id="sample">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>学校名</th>
                            <th>应考<br/>人数</th>
                            <th>语文<br/>平均分</th>
                            <th>语文<br/>及格率</th>
                            <th>数学<br/>平均分</th>
                            <th>数学<br/>及格率</th>
                            <th>英语<br/>平均分</th>
                            <th>英语<br/>及格率</th>
                            <th>政治<br/>平均分</th>
                            <th>政治<br/>及格率</th>
                            <th>历史<br/>平均分</th>
                            <th>历史<br/>及格率</th>
                            <th>物理<br/>平均分</th>
                            <th>物理<br/>及格率</th>
                            <th>化学<br/>平均分</th>
                            <th>化学<br/>及格率</th>
                            <th>地理<br/>平均分</th>
                            <th>地理<br/>及格率</th>
                            <th>生物<br/>平均分</th>
                            <th>生物<br/>及格率</th>
                            <th>总平<br/>均分</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="_list" id="sub">
                            <tr class="odd gradeX">
                                <td>{$sub.tid}</td>
                                <td>{$sub.school_name}</td>
                                <td>{$sub.examinee_number}</td>
                                <td>{$sub.lang_average}</td>
                                <td>{$sub.lang_pass}</td>
                                <td>{$sub.math_average}</td>
                                <td>{$sub.math_pass}</td>
                                <td>{$sub.english_average}</td>
                                <td>{$sub.english_pass}</td>
                                <td>{$sub.political_average}</td>
                                <td>{$sub.political_pass}</td>
                                <td>{$sub.history_average}</td>
                                <td>{$sub.history_pass}</td>
                                <td>{$sub.physics_average}</td>
                                <td>{$sub.physics_pass}</td>
                                <td>{$sub.chemistry_average}</td>
                                <td>{$sub.chemistry_pass}</td>
                                <td>{$sub.geography_average}</td>
                                <td>{$sub.geography_pass}</td>
                                <td>{$sub.biology_average}</td>
                                <td>{$sub.biology_pass}</td>
                                <td>{$sub.total_points}</td>
                                <td>
                                    <a href="">编辑</a>
                                    <a href="">删除</a>
                                </td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>

                    <div class="page">
                        {$_page}
                    </div>
                </div>
            </div>
            <!-- END EXAMPLE TABLE PORTLET-->
        </div>
    </div>

</block>

<block name="script">
    <script type="text/javascript" src="__STATIC__/plugins/data-tables/jquery.dataTables.js"></script>
    <script type="text/javascript" src="__STATIC__/plugins/data-tables/DT_bootstrap.js"></script>
    <script src="__STATIC__/scripts/app.js"></script>
    <script src="__STATIC__/scripts/table-managed.js"></script>
    <script>

        jQuery(document).ready(function() {
            App.init();
            TableManaged.init();
            highlight_subnav('{:U('User/gradeInformation')}');

        });


    </script>
</block>